#ifndef SEARCHLINEEDIT_H
#define SEARCHLINEEDIT_H

#include <QObject>
#include <QLineEdit>
#include <QPushButton>

class SearchLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    explicit SearchLineEdit(QWidget *parent = nullptr);

signals:
    void hasfocus();//得到焦点发送信号
    void losefocus();//失去焦点发送信号

protected:
    void focusInEvent(QFocusEvent *event) override;//得到焦点发送信号
    void focusOutEvent(QFocusEvent *event) override;//失去焦点发送信号


private:

};



#endif // SEARCHLINEEDIT_H
